Returns an instance of the custom implementation for the provided type.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim requiredCreationPolicy As CreationPolicy
Dim value As T
value = Composition.GetInstance(Of T)(requiredCreationPolicy) |
Parameters
- requiredCreationPolicy
- Optionally specify whether the returned instance should be a shared, non-shared or any instance.
Type Parameters
- T
- Type of the requested instance.
Return Value
The requested instance.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also